package com.ea.admin.pojo.param.superAdmin.database;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EditDatabaseUrlParam {
    @ApiModelProperty(value = "数据库链接地址", required = true)
    @NotBlank(message = "数据库链接地址不能为空")
    String url;

    @ApiModelProperty(value = "数据库用户名", required = true)
    @NotBlank(message = "数据库用户名不能为空")
    String username;

    @ApiModelProperty(value = "数据库密码", required = true)
    @NotBlank(message = "数据库密码不能为空")
    String password;
}
